package com.ipzoe.app.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ipzoe.act.domain.Activity;
import com.ipzoe.act.model.SignedActivityBO;
import com.ipzoe.app.dto.ActivityDTO;
import com.ipzoe.app.dto.SignedActivityDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ActivityConvert {

    ActivityConvert INSTANCE = Mappers.getMapper(ActivityConvert.class);

    @Mappings({})
    List<ActivityDTO> convert(List<Activity> activityList);
    @Mappings({})
    Page<ActivityDTO> convert(Page<Activity> activityPage);
    @Mappings({})
    ActivityDTO convert(Activity activity);
    @Mappings({})
    List<SignedActivityDTO> convertSignedList(List<SignedActivityBO> list);
}
